package com.base.commonlib.http.utils;

import com.alibaba.android.arouter.launcher.ARouter;
import com.base.commonlib.utils.ToastUtil;

/**
 * Created by weikailiang on 2019/5/28.
 */

public abstract class CallBackImpl<T> implements CallBack2<T>{
    @Override
    public void onResponse(T t) throws Exception {
        onNext(t);
    }

    @Override
    public void login() {
        ToastUtil.show("登录已失效");
        ARouter.getInstance().build("/mine/pwdlogin").navigation();
    }
}
